package com.yantu.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author 综合实训课程设计
 * @since 2022-08-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User实体对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("扫码登录token")
    private  String scanToken;

    @ApiModelProperty(value = "账户")
    private String account;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "户用密码")
    private String password;

    @ApiModelProperty(value = "用户真实姓名")
    private String realName;

    @ApiModelProperty(value = "用户年纪")
    private Integer age;

    @ApiModelProperty(value = "用户性别：1.男 2女")
    private Integer sex;

    @ApiModelProperty(value = "用户生日")
    private Date birthDay;

    @ApiModelProperty(value = "户用年级")
    private Integer userLevel;

    @ApiModelProperty(value = "用户电话")
    private String phone;

    @ApiModelProperty(value = "用户角色：1.学生2.队长 3.管理员")
    private Integer role;

    @ApiModelProperty(value = "用户状态：1.启用 2禁用")
    private Integer status;

    @ApiModelProperty(value = "用户头像地址")
    private String imagePath;

    @ApiModelProperty(value = "用户创建时间")
    private Date createTime;

    @ApiModelProperty(value = "登录时间")
    @TableField("loginTime")
    private Long logintime;

    @ApiModelProperty(value = "过期时间")
    @TableField("expireTime")
    private Long expiretime;

    @ApiModelProperty(value = "用户token")
    private String token;

    @ApiModelProperty(value = "软删除")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "微信openId")
    private String wxOpenId;

    @ApiModelProperty("用户地址")
    private String address;
}
